package com.nbcio.modules.crm.customer.domain;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * CRM客户实体
 */
@Data
@TableName("crm_customer")
public class CrmCustomer {
    @TableId
    private Long customerId;
    private String customerCode;
    private String customerName;
    private String customerType; // ENTERPRISE/INDIVIDUAL
    private Long categoryId;
    private Long levelId;
    private String industry;
    private String legalPerson;
    private BigDecimal registeredCapital;
    private String creditCode;
    private String taxNumber;
    private String phone;
    private String email;
    private String website;
    private String address;
    private String province;
    private String city;
    private String district;
    private String postalCode;
    private String bankName;
    private String bankAccount;
    private Long ownerUserId;
    private Long ownerDeptId;
    private Integer status; // 1启用 0停用
    private String source;
    private String remark;
    private Long createBy;
    private LocalDateTime createTime;
    private Long updateBy;
    private LocalDateTime updateTime;
    private Long createDept;
    private String tenantId;
}

